package com.senior.lock;

public class LockByteCodeDemo {

    final Object o = new Object();
    public void m1(){
        synchronized (o){
            System.out.println("hello sync");
        }
    }

    public synchronized  void m2(){

    }
}
